<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdQuotationCustAddrBean.id}"/>
		<f:event type="preRenderView" listener="#{sdQuotationCustAddrBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sd Quotation Cust Addr"/>

	<ui:define name="header">
		Sd Quotation Cust Addr
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sdQuotationCustAddrBean.id}">
				Edit existing Sd Quotation Cust Addr
			</c:when>
			<c:otherwise>
				Create a new Sd Quotation Cust Addr
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrSysAddr01" value="Sys Addr 01:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="sdQuotationCustAddrBeanSdQuotationCustAddrSysAddr01" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.sysAddr01}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrSysAddr01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrSdQuotation" value="Sd Quotation:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdQuotationBean.converter}" id="sdQuotationCustAddrBeanSdQuotationCustAddrSdQuotation" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.sdQuotation}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdQuotationBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrSdQuotation" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrSysAddrType" value="Sys Addr Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="sdQuotationCustAddrBeanSdQuotationCustAddrSysAddrType" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.sysAddrType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrSysAddrType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrNo" value="Qt Cust Addr No:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrNo" maxLength="20" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrNo}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrMoo" value="Qt Cust Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrMoo" maxLength="10" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrMoo}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrSoi" value="Qt Cust Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrSoi" maxLength="100" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrSoi}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrRoad" value="Qt Cust Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrRoad" maxLength="100" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrRoad}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrBuilding" value="Qt Cust Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrBuilding" maxLength="100" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrBuilding}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrFloor" value="Qt Cust Addr Floor:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrFloor" maxLength="50" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrFloor}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrFloor" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrRoom" value="Qt Cust Addr Room:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrRoom" maxLength="50" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrRoom}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrRoom" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrName01" value="Qt Cust Addr Name 01:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrName01" maxLength="100" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrName01}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrName01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrPostcode" value="Qt Cust Addr Postcode:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrPostcode" maxLength="20" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrPostcode}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrPostcode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrPhoneNo" value="Qt Cust Addr Phone No:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrPhoneNo" maxLength="20" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrPhoneNo}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrFaxNo" value="Qt Cust Addr Fax No:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrFaxNo" maxLength="20" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrFaxNo}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrFaxNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrMobileNo" value="Qt Cust Addr Mobile No:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrMobileNo" maxLength="20" value="#{sdQuotationCustAddrBean.sdQuotationCustAddr.qtCustAddrMobileNo}"/>
					<h:message for="sdQuotationCustAddrBeanSdQuotationCustAddrQtCustAddrMobileNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sdQuotationCustAddrBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sdQuotationCustAddrBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sdQuotationCustAddrBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sdQuotationCustAddrBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>